package edu.zut.hb.ambition.cashier.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import edu.zut.hb.ambition.base.domain.Column;

import edu.zut.hb.ambition.base.domain.BaseEntity;
public class Cashier extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    @Column(name = "cashier")
    private String cashier;

    @Column(name = "reportid")
    private Long reportid;

    @Column(name = "durgname")
    private String durgname;

    @Column(name = "durgnum")
    private Long durgnum;

    @Column(name = "repiceprice")
    private BigDecimal repiceprice;

    @Column(name = "repicetotal")
    private String repicetotal;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Column(name = "ctime", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ctime;

    public void setCashier(String cashier) 
    {
        this.cashier = cashier;
    }

    public String getCashier() 
    {
        return cashier;
    }
    public void setReportid(Long reportid) 
    {
        this.reportid = reportid;
    }

    public Long getReportid() 
    {
        return reportid;
    }
    public void setDurgname(String durgname) 
    {
        this.durgname = durgname;
    }

    public String getDurgname() 
    {
        return durgname;
    }
    public void setDurgnum(Long durgnum) 
    {
        this.durgnum = durgnum;
    }

    public Long getDurgnum() 
    {
        return durgnum;
    }
    public void setRepiceprice(BigDecimal repiceprice) 
    {
        this.repiceprice = repiceprice;
    }

    public BigDecimal getRepiceprice() 
    {
        return repiceprice;
    }
    public void setRepicetotal(String repicetotal) 
    {
        this.repicetotal = repicetotal;
    }

    public String getRepicetotal() 
    {
        return repicetotal;
    }
    public void setCtime(Date ctime) 
    {
        this.ctime = ctime;
    }

    public Date getCtime() 
    {
        return ctime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cashier", getCashier())
            .append("reportid", getReportid())
            .append("durgname", getDurgname())
            .append("durgnum", getDurgnum())
            .append("repiceprice", getRepiceprice())
            .append("repicetotal", getRepicetotal())
            .append("ctime", getCtime())
            .toString();
    }
}
